<?php

if (isset($_SESSION['oClient'])) {
# Inclusion des  classes de gestion
    include 'class/app/GestCommande/Panier.class.php';
    include 'class/app/GestProduit/Article.class.php';
    $oClient = unserialize($_SESSION['oClient']);
    $oClient->chargerLaCommande($sql,$_GET['id']);
    $laCommande = $oClient->getLaCommande();
    $laCommande->chargerLesArticles($sql);
    $_SESSION['lesArticles'] = serialize($laCommande->getLesArticles());
# Inclusion du Template
    include "templates/modules/GestCommande/consultThisCom.tpl.php";
} else {
    header('Location: index.php?mod=general&page=accueil');
}
?>